package com.cmc.cloud.cmclink.doc.vo.specialcargoflexivo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 特种货审批flexi更新 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 特种货审批flexi更新 Request VO")
@Data
@ToString(callSuper = true)
public class SpecialCargoFlexiUpdateReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17978")
    @NotNull(message = "主键不能为空")
    private Long id;

    @Schema(description = "包装的最大容量（升 L）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "包装的最大容量（升 L）不能为空")
    private Integer capacityOfFlexitank;

    @Schema(description = "液袋货的体积（升 L）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "液袋货的体积（升 L）不能为空")
    private Integer volumeOfCargo;

    @Schema(description = "液体最多能装多少比例", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "液体最多能装多少比例不能为空")
    private Integer loadingRatio;

    @Schema(description = "货物描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @NotBlank(message = "货物描述不能为空")
    @Length(max = 500, message = "货物描述支持最大长度{max}")
    private String cargoDescription;

    @Schema(description = "生产厂家", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "生产厂家不能为空")
    @Length(max = 50, message = "生产厂家支持最大长度{max}")
    private String nameOfManufacturer;

}
